class clusters::nisclient(
 $nisserver  = "localhost",
 $nisdomain  = "ihep.ac.cn",
){
  class { 'authconfig' :
    nis        => true,
    nisdomain  => "$nisdomain",
    nisserver  => "$nisserver",
    cache      => true,
    require    => Package['ypbind'],
  }
  package { 'ypbind':
    ensure  => "installed",
    require => Yumrepo['site'],
  }
  service { 'ypbind':
    ensure     => 'running',
    enable     => true,
    hasrestart => true,
    hasstatus  => true,
    require    => Class['authconfig'],
  }
}
